package com.lagou.homework.merge;

import org.apache.hadoop.io.BytesWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

// 先把三个小文件合并成一个
// key:文件路径+名称
// value:文件内容
// 因此此处输出和输出的kv都是   Text : BytesWritable
public class MergeMapper extends Mapper<Text, BytesWritable,Text,BytesWritable> {
    @Override
    protected void map(Text key, BytesWritable value, Context context) throws IOException, InterruptedException {
        context.write(key,value);
    }
}
